/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package baiwa.rta.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.struts2.json.annotations.JSON;

import com.opensymphony.xwork2.conversion.annotations.TypeConversion;

/**
 *
 * @author jirapatjantsakool
 */
public class RMsreqhdr extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer sreqhid;
    private String sreqhdocno;
    private String sreqhstat;
    private String sreqhprt;
    private String sreqhreqby;
    private Date sreqhreqdat;
    private String sreqhtel;
    private String sreqhdesc;
    private String sreqhlht;
    private String sreqhtelele;
    private String sreqhaircon;
    private String sreqhstr;
    private String sreqhapl;
    private String sreqhpool;
    private String sreqhcln;
    private String sreqhscr;
    private String sreqhconnm;
    private String sreqhasto;
    private Date sreqhresdat;
    private String sreqhrestm;
    private String sreqhcus;
    private String sreqhsptm;
    private String sreqhwttm;
    private String sreqhcuswttm;
    private Integer rlrmid;
    private String sreqhcreby;
    private Date sreqhcredat;
    private String sreqhupdby;
    private Date sreqhupddat;
    private Date sreqhspdat;
    private Date sreqhwtdat;
    private Date sreqcptdate;
    private String sreqcpttm;
    private TowerModel towerModel;
    
    public RMsreqhdr() {
    }

    public RMsreqhdr(Integer sreqhid) {
        this.sreqhid = sreqhid;
    }

    public RMsreqhdr(Integer sreqhid, String sreqhdocno, Integer rlrmid) {
        this.sreqhid = sreqhid;
        this.sreqhdocno = sreqhdocno;
        this.rlrmid = rlrmid;
    }

    public Integer getSreqhid() {
        return sreqhid;
    }

    public void setSreqhid(Integer sreqhid) {
        this.sreqhid = sreqhid;
    }

    public String getSreqhdocno() {
        return sreqhdocno;
    }

    public void setSreqhdocno(String sreqhdocno) {
        this.sreqhdocno = sreqhdocno;
    }

    public String getSreqhstat() {
        return sreqhstat;
    }

    public void setSreqhstat(String sreqhstat) {
        this.sreqhstat = sreqhstat;
    }

    public String getSreqhprt() {
        return sreqhprt;
    }

    public void setSreqhprt(String sreqhprt) {
        this.sreqhprt = sreqhprt;
    }

    

    public void setRlrmid(Integer rlrmid) {
		this.rlrmid = rlrmid;
	}

	

    public String getSreqhtel() {
        return sreqhtel;
    }

    public void setSreqhtel(String sreqhtel) {
        this.sreqhtel = sreqhtel;
    }

    public String getSreqhdesc() {
        return sreqhdesc;
    }

    public void setSreqhdesc(String sreqhdesc) {
        this.sreqhdesc = sreqhdesc;
    }

    public String getSreqhlht() {
        return sreqhlht;
    }

    public void setSreqhlht(String sreqhlht) {
        this.sreqhlht = sreqhlht;
    }

    public String getSreqhtelele() {
        return sreqhtelele;
    }

    public void setSreqhtelele(String sreqhtelele) {
        this.sreqhtelele = sreqhtelele;
    }

    public String getSreqhaircon() {
        return sreqhaircon;
    }

    public void setSreqhaircon(String sreqhaircon) {
        this.sreqhaircon = sreqhaircon;
    }

    public String getSreqhstr() {
        return sreqhstr;
    }

    public void setSreqhstr(String sreqhstr) {
        this.sreqhstr = sreqhstr;
    }

    public String getSreqhapl() {
        return sreqhapl;
    }

    public void setSreqhapl(String sreqhapl) {
        this.sreqhapl = sreqhapl;
    }

    public String getSreqhpool() {
        return sreqhpool;
    }

    public void setSreqhpool(String sreqhpool) {
        this.sreqhpool = sreqhpool;
    }

    public String getSreqhcln() {
        return sreqhcln;
    }

    public void setSreqhcln(String sreqhcln) {
        this.sreqhcln = sreqhcln;
    }

    public String getSreqhscr() {
        return sreqhscr;
    }

    public void setSreqhscr(String sreqhscr) {
        this.sreqhscr = sreqhscr;
    }

    public String getSreqhconnm() {
        return sreqhconnm;
    }

    public void setSreqhconnm(String sreqhconnm) {
        this.sreqhconnm = sreqhconnm;
    }

    public String getSreqhasto() {
        return sreqhasto;
    }

    public void setSreqhasto(String sreqhasto) {
        this.sreqhasto = sreqhasto;
    }


    public String getSreqhrestm() {
        return sreqhrestm;
    }

    public void setSreqhrestm(String sreqhrestm) {
        this.sreqhrestm = sreqhrestm;
    }

    public String getSreqhcus() {
        return sreqhcus;
    }

    public void setSreqhcus(String sreqhcus) {
        this.sreqhcus = sreqhcus;
    }

    public String getSreqhsptm() {
        return sreqhsptm;
    }

    public void setSreqhsptm(String sreqhsptm) {
        this.sreqhsptm = sreqhsptm;
    }

    public String getSreqhwttm() {
        return sreqhwttm;
    }

    public void setSreqhwttm(String sreqhwttm) {
        this.sreqhwttm = sreqhwttm;
    }

    public String getSreqhcuswttm() {
        return sreqhcuswttm;
    }

    public void setSreqhcuswttm(String sreqhcuswttm) {
        this.sreqhcuswttm = sreqhcuswttm;
    }

  
    public Integer getRlrmid() {
		return rlrmid;
	}

	public String getSreqhcreby() {
        return sreqhcreby;
    }

    public void setSreqhcreby(String sreqhcreby) {
        this.sreqhcreby = sreqhcreby;
    }


    public String getSreqhupdby() {
        return sreqhupdby;
    }

    public void setSreqhupdby(String sreqhupdby) {
        this.sreqhupdby = sreqhupdby;
    }


    public String getSreqcpttm() {
        return sreqcpttm;
    }

    public void setSreqcpttm(String sreqcpttm) {
        this.sreqcpttm = sreqcpttm;
    }

    
    @JSON(format = "dd/MM/yyyy")
    public Date getSreqhreqdat() {
		return sreqhreqdat;
	}
    @TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqhreqdat(Date sreqhreqdat) {
		this.sreqhreqdat = sreqhreqdat;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getSreqhresdat() {
		return sreqhresdat;
	}
	@TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqhresdat(Date sreqhresdat) {
		this.sreqhresdat = sreqhresdat;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getSreqhcredat() {
		return sreqhcredat;
	}
	@TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqhcredat(Date sreqhcredat) {
		this.sreqhcredat = sreqhcredat;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getSreqhupddat() {
		return sreqhupddat;
	}
	@TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqhupddat(Date sreqhupddat) {
		this.sreqhupddat = sreqhupddat;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getSreqhspdat() {
		return sreqhspdat;
	}
	@TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqhspdat(Date sreqhspdat) {
		this.sreqhspdat = sreqhspdat;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getSreqhwtdat() {
		return sreqhwtdat;
	}
	@TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqhwtdat(Date sreqhwtdat) {
		this.sreqhwtdat = sreqhwtdat;
	}
	@JSON(format = "dd/MM/yyyy")
	public Date getSreqcptdate() {
		return sreqcptdate;
	}
	@TypeConversion(converter = "baiwa.rta.converter.StringToDateConverter")
	public void setSreqcptdate(Date sreqcptdate) {
		this.sreqcptdate = sreqcptdate;
	}

	public String getSreqhreqby() {
		return sreqhreqby;
	}

	public void setSreqhreqby(String sreqhreqby) {
		this.sreqhreqby = sreqhreqby;
	}

	public TowerModel getTowerModel() {
		return towerModel;
	}

	public void setTowerModel(TowerModel towerModel) {
		this.towerModel = towerModel;
	}

	@Override
	public String toString() {
		return "RMsreqhdr [sreqhid=" + sreqhid + ", sreqhdocno=" + sreqhdocno
				+ ", sreqhstat=" + sreqhstat + ", sreqhprt=" + sreqhprt
				+ ", sreqhreqby=" + sreqhreqby + ", sreqhreqdat=" + sreqhreqdat
				+ ", sreqhtel=" + sreqhtel + ", sreqhdesc=" + sreqhdesc
				+ ", sreqhlht=" + sreqhlht + ", sreqhtelele=" + sreqhtelele
				+ ", sreqhaircon=" + sreqhaircon + ", sreqhstr=" + sreqhstr
				+ ", sreqhapl=" + sreqhapl + ", sreqhpool=" + sreqhpool
				+ ", sreqhcln=" + sreqhcln + ", sreqhscr=" + sreqhscr
				+ ", sreqhconnm=" + sreqhconnm + ", sreqhasto=" + sreqhasto
				+ ", sreqhresdat=" + sreqhresdat + ", sreqhrestm=" + sreqhrestm
				+ ", sreqhcus=" + sreqhcus + ", sreqhsptm=" + sreqhsptm
				+ ", sreqhwttm=" + sreqhwttm + ", sreqhcuswttm=" + sreqhcuswttm
				+ ", rlrmid=" + rlrmid + ", sreqhcreby=" + sreqhcreby
				+ ", sreqhcredat=" + sreqhcredat + ", sreqhupdby=" + sreqhupdby
				+ ", sreqhupddat=" + sreqhupddat + ", sreqhspdat=" + sreqhspdat
				+ ", sreqhwtdat=" + sreqhwtdat + ", sreqcptdate=" + sreqcptdate
				+ ", sreqcpttm=" + sreqcpttm + ", towerModel=" + towerModel
				+ ", getTowerModel()=" + getTowerModel() + "]";
	}


    
}
